import request from '@/utils/request'

// 查询redis信息列表
export function listRedis(query) {
  return request({
    url: '/study/redis/list',
    method: 'get',
    params: query
  })
}

// 查询redis信息详细
export function getRedis(id) {
  return request({
    url: '/study/redis/' + id,
    method: 'get'
  })
}

// 新增redis信息
export function addRedis(data) {
  return request({
    url: '/study/redis',
    method: 'post',
    data: data
  })
}

// 修改redis信息
export function updateRedis(data) {
  return request({
    url: '/study/redis',
    method: 'put',
    data: data
  })
}

// 删除redis信息
export function delRedis(id) {
  return request({
    url: '/study/redis/' + id,
    method: 'delete'
  })
}
